package sample.mybatis.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sample.mybatis.service.ServiceA;

import java.util.Map;

/**
 * @author : dongyz8
 * @Date : 2023/11/6 9:04
 **/
@RestController
@RequestMapping("/mybatis")
public class MybatisController {

    @Autowired
    private ServiceA serviceA;

    @RequestMapping("/experience1")
    public void experience1(Map<String,Object> param){
        serviceA.experience1();
    }

    @RequestMapping("/experience2")
    public void experience2(Map<String,Object> param){
        serviceA.experience2();
    }

    @RequestMapping("/experience3")
    public void experience3(Map<String,Object> param){
        serviceA.experience3();
    }

    @RequestMapping("/experience4")
    public void experience4(Map<String,Object> param){
        serviceA.experience4();
    }

    @RequestMapping("/experience5")
    public void experience5(Map<String,Object> param){
        serviceA.experience5();
    }
}
